﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LambdaToSql.Interface
{
    public interface IDbFirst
    {
        /// <summary>
        /// 数据库上下文对象
        /// </summary>
        LambdaToSql.EntityModel.DbContext Context { get; set; }

        /// <summary>
        /// 生成所有实体
        /// </summary>
        /// <param name="SavedFolder">存储目录 虚拟目录</param>
        /// <param name="mbType">默认 不填</param>
        void Create(string SavedFolder, string mbType = "mb_basic");

        /// <summary>
        /// 生成指定表集合的实体
        /// </summary>
        /// <param name="SavedFolder">存储目录 虚拟目录</param>
        /// <param name="tableList">表集合</param>
        /// <param name="mbType">默认 不填</param>
        void CreateByTable(string SavedFolder, List<string> tableList, string mbType = "mb_basic");
    }
}
